package lianxi.pro;

public class Manager {
	public static void main(String[] args) {
		test01();
	}
	private static void test01() {
		//创建仓库对象
		Warehouse war=new Warehouse(6);
		Thread pro=new ProductThrea(war);
		//启动生产线程
		pro.start();
		Thread con=new ConmuTrea(war);
		//启动购买线程
		con.start();
	}
}
